﻿using Alta.Class;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Camera_CMD
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static setting @setting;
        public static string fileSetting = "setting.xml";
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            setting = setting.read(fileSetting);
            mysql_helpper.connection(setting.user, setting.host, setting.pass, setting.database);
            this.MainWindow = new MainWindow();
            this.MainWindow.Show();
         
        }
    }
}
